//
//  MyCollectionViewCell.m
//  testZhengShu
//
//  Created by Garlic on 2020/3/27.
//  Copyright © 2020 garlic. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView addSubview:self.label];
        self.label.frame = CGRectMake(0, 0, 100, 20);
    }
    return self;
}

- (UILabel *)label{
    if (!_label) {
        _label = [[UILabel alloc] init];
        _label.font = [UIFont systemFontOfSize:14];
        _label.textColor = [UIColor purpleColor];
    }
    return _label;
}
@end
